package com.jumper.property.comparer.starter.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * 支持集成的orm框架
 */
@Getter
@AllArgsConstructor
public enum ORM {
    MYBATIS("mybatis"),
    JPA("jpa"),
    ;

    private final String value;

    public static ORM of(String value) {
        for (ORM orm : values()) {
            if (Objects.equals(orm.value, value)) {
                return orm;
            }
        }
        return null;
    }
}
